<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
card
<script>
    console.log(location);
    //websocket连接
    var socket = new WebSocket("ws://" + location.host + "/card/card/open");
    socket.onopen = function( even ){
        console.log(even);
        socket.onmessage = function ( data ) {
            console.log(data);
        }
    }
</script>
<script src="/assets/js/jquery.min.js"></script>
<script src="/resource/js/shake.js" charset="utf-8"></script>
<script>
    willShake(function(){
        alert(888);
    });

</script>
</body>
</html>